package com.GDOU.mapper;

import com.GDOU.bean.TLeave;
import com.GDOU.bean.TLeaveExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface TLeaveMapper {
    int countByExample(TLeaveExample example);

    int deleteByExample(TLeaveExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TLeave record);

    int insertSelective(TLeave record);

    List<TLeave> selectByExample(TLeaveExample example);

    TLeave selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TLeave record, @Param("example") TLeaveExample example);

    int updateByExample(@Param("record") TLeave record, @Param("example") TLeaveExample example);

    int updateByPrimaryKeySelective(TLeave record);

    int updateByPrimaryKey(TLeave record);

    List<TLeave> ajaxSplit(@Param("stuId") Integer stuId, @Param("typeId") Integer typeId, @Param("statuId") Integer statuId);

}
